package 设计模式.行为型.策略;

/**
 * description:
 *
 * @author 颜真明
 * @date 2024/3/12  10:14
 */
public class StrategyContext {
    private Strategy strategy;
    public StrategyContext(Strategy strategy){
        this.strategy = strategy;
    }
    public int executeStrategy(int a, int b){
        return strategy.compute(a,b);
    }
}
